<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ViewCreateDlg" widgetVar="ViewCreateDialog" modal="true" resizable="false" appendTo="@(body)" header="#{myBundle.CreateViewTitle}" closeOnEscape="true">

            <h:form id="ViewCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2">


                        <p:outputLabel value="#{myBundle.CreateViewLabel_user}" for="user" />
                        <p:inputText id="user" value="#{viewController.selected.user}" title="#{myBundle.CreateViewTitle_user}" required="true" requiredMessage="#{myBundle.CreateViewRequiredMessage_user}" size="30" maxlength="30"/>


                        <p:outputLabel value="#{myBundle.CreateViewLabel_fid}" for="fid" />
                        <p:inputText id="fid" value="#{viewController.selected.fid}" title="#{myBundle.CreateViewTitle_fid}" required="true" requiredMessage="#{myBundle.CreateViewRequiredMessage_fid}"/>


                        <p:outputLabel value="#{myBundle.CreateViewLabel_tid}" for="tid" />
                        <p:inputText id="tid" value="#{viewController.selected.tid}" title="#{myBundle.CreateViewTitle_tid}" required="true" requiredMessage="#{myBundle.CreateViewRequiredMessage_tid}"/>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{viewController.saveNew}" value="#{myBundle.Save}" update="display,:ViewListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,ViewCreateDialog);">
                        <p:confirm header="#{myBundle.ConfirmationHeader}" message="#{myBundle.ConfirmCreateMessage}" icon="ui-icon-alert"/>
                    </p:commandButton>

                    <p:commandButton value="#{myBundle.Cancel}" onclick="ViewCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
